<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="entity_header(links)">
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="_csrf" th:content="${_csrf.token}"/>
    <meta name="_csrf_header" th:content="${_csrf.headerName}"/>
    <!--Open Sans Font [ OPTIONAL ] -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;subset=latin" rel="stylesheet"/>
    <link th:href="@{/static/plug-in/layui/css/layui.css}" rel="stylesheet" media="all"/>
    <link type="text/css" rel="stylesheet" th:href="@{/static/resources/common/css/entity.css}" media="all"/>
    <!--Themify Icons [ OPTIONAL ]-->
    <link th:href="@{/static/plug-in/icon/themify-icons/themify-icons.min.css}" rel="stylesheet"/>
    <link th:href="@{/static/plug-in/icon/plugins/ionicons/css/ionicons.min.css}" rel="stylesheet"/>
    <th:block  th:replace="${links}"/>
</head>
<body th:fragment="entity_body(content,scripts)">
<div class="layui-custom-body">
    <header class="layui-custom-header">
        <fieldset class="layui-elem-field layui-field-title">
            <!--/*@thymesVar id="title" type="com.wj.common.mvc.controller"*/-->
            <legend th:text="${title}"></legend>
        </fieldset>
    </header>
    <!--/*@thymesVar id="url" type="com.wj.common.mvc.controller.BaseController"*/-->
    <form class="layui-form layui-form-pane custom-form" th:action="${url}" method="post">
        <!--<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>-->
        <div class="layui-custom-domain">
            <div class="layui-custom-form">
                <th:block th:replace="${content}"/>
            </div>
        </div>
        <footer class="layui-custom-footer">
            <div class="layui-custom-button" th:if="${button == true}">
                <button class="layui-btn layui-btn-small custom-save" type="button">保&nbsp;&nbsp;&nbsp;&nbsp;存</button>
                <button type="reset" class="layui-btn layui-btn-small layui-btn-primary">重&nbsp;&nbsp;&nbsp;&nbsp;置</button>
            </div>
        </footer>
        <input type="hidden" th:value="${entity.id}" name="id"/>
    </form>
</div>
<input name="button" th:value="${button}" type="hidden"/>
<input name="msg" th:value="${msg}" type="hidden"/>
<script th:src="@{/static/plug-in/layui/layui.js}"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" th:src="@{/static/resources/common/js/entity.js}"></script>
<th:block th:replace="${scripts}"/>
</body>
</html>